package com.sinosoft.ptas.control.dto;

import java.io.Serializable;
import java.util.Date;

import com.sinosoft.framework.core.common.utils.ajax.ObjectUtil;
import com.sinosoft.ptas.entity.AnnualTargetEntity;

/**
 * 年度目标传输类
 * @author lianWuJun
 * @time   2017年2月18日 下午8:42:26
 */
public class AnnualTargetData implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private String id;//标识符
	private String annualTargets; //年度目标
	private String targetsOfImplPhase;//所属实施目标ID
	private String creater;//创建人
	private Date createTime;//创建时间
	private String updator;//更新人
	private Date updateTime;//更新时间
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAnnualTargets() {
		return annualTargets;
	}
	public void setAnnualTargets(String annualTargets) {
		this.annualTargets = annualTargets;
	}
	public String getTargetsOfImplPhase() {
		return targetsOfImplPhase;
	}
	public void setTargetsOfImplPhase(String targetsOfImplPhase) {
		this.targetsOfImplPhase = targetsOfImplPhase;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUpdator() {
		return updator;
	}
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	/**
	 * 传输类转化成实体类
	 */
	public AnnualTargetEntity toEntity(){
		AnnualTargetEntity annualTargetEntity = new AnnualTargetEntity();
		ObjectUtil.oldToNew(annualTargetEntity, this, "serialVersionUID");
		return annualTargetEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 */
	public void toannualTargetData(AnnualTargetEntity annualTargetEntity){
		ObjectUtil.oldToNew(this, annualTargetEntity, "serialVersionUID");
	}
}
